set Rotation
Update a block's rotation. With the setting features/implicitUpdatesEnabled off, the call updates only when a block that it reads has no layout yet, as right after an undo. It reads the block, the members of a group and each transform parent. That update also lays out every other pending change. Required scope: "layer/rotate"
Parameters
block
the block to update.
radians
the new rotation in the scene's angle unit (radians by default, see SceneApi.setAngleUnit). Rotation is applied around the block's center.